<%= render :partial => 'forums', :object => @forums %>
<% if current_user.can_create_forum? %>
  <div class="button"><%= link_to 'New Forum', new_forum_path %></div>
<% end %>

<% if current_user.can_sort_forum? %>
  <%= link_to 'Sort Forums', sortable_forums_path %>
<% end %>

<div id="info">
  <% unless User.count.zero? %>
    Newest User: <%= link_to_user User.find(:first, :order => 'created_at DESC') %><br />
  <% end %>
  
  <div id="stats">
    <strong>Board Statistics</strong><br />
    Total Posts: <%= Post.count %><br />
    Total Topics: <%= Topic.count %><br />
    Total Users: <%= User.count %>
  </div>
</div>
